﻿using System;
using SolidDemo.Business.Interfaces;
using SolidDemo.Data.Contexts;

namespace SolidDemo.Business.Repositories
{
    public abstract class GomtuuRepository : IDisposable
    {
        protected MainContext _db;
        protected IDataHelper _dataHelper;
        protected IMessageHelper _messageHelper;

        protected GomtuuRepository(MainContext db, IDataHelper dataHelper, IMessageHelper messageHelper)
        {
            _db = db;
            _dataHelper = dataHelper;
            _messageHelper = messageHelper;
        }

        public void Dispose()
        {
            _db.Dispose();
        }
    }
}
